import {Space,Button,Tag} from "antd";
export const columnsData = [
    {
        title: '姓名',
        dataIndex: 'name',
        key: 'name',
    },
    {
        title: '年龄',
        dataIndex: 'age',
        key: 'age',
    },
    {
        title: '性别',
        dataIndex: 'sex',
        key: 'sex',
        render: (_, {sex}) => {
              return (
              <Tag color={sex === 0 ? 'geekblue' :'green'}>
                  {sex === 0 ? '女' :'男'}
              </Tag>
              );
        }
    },
    {
        title: '出生日期',
        dataIndex: 'birth',
        key: 'birth',
    },
    {
        title: '地址',
        dataIndex: 'addr',
        key: 'addr',
    },
    {
        title: '操作',
        dataIndex: 'operation',
        key: 'operation',
        render: () => <Space>
            <Button  color="danger">编辑</Button>
            <Button  color="danger" variant='solid'>删除</Button>
        </Space>
    },
]